<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/jsp/include/tags.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>model - write</title>
	<link rel="stylesheet" type="text/css" href="/css/style.css"/>
	<script type="text/javascript">
	<!--
		function goList() {
			var f = document.modelCriteriaForm;
			f.submit();
		}
	//-->
	</script>
</head>
<body>
	
	<p><a href="/">home</a></p>
		
	<h1>Model - edit</h1>
	
	<form:form commandName="modelCriteria" id="modelCriteriaForm" name="modelCriteriaForm" action="/model.do" method="get">
	<input type="hidden" name="mode"/>
	<form:hidden path="modelId"/>
	<form:hidden path="paging.currentPage"/>
	</form:form>

	<form:form commandName="model" name="modelForm" action="/modelEdit.do">
	<input type="hidden" name="mode" value="edit"/>
	<form:hidden path="modelId"/>
	<table width="800">
		<colgroup width="800">
			<col width="100"/>
			<col width="*"/>
		</colgroup>
		<tr>
			<th>modelId</th>
			<td>
				<c:out value="${model.modelId}"/>
			</td>
		</tr>
		<tr>
			<th>modelName</th>
			<td>
				<form:input path="modelName"/>
				<form:errors path="modelName" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>modelPath</th>
			<td>
				<form:input path="modelPath"/>
				<form:errors path="modelPath" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>tplChannelPrefix</th>
			<td>
				<form:input path="tplChannelPrefix"/>
				<form:errors path="tplChannelPrefix" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>tplContentPrefix</th>
			<td>
				<form:input path="tplContentPrefix"/>
				<form:errors path="tplContentPrefix" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>titleImgWidth</th>
			<td>
				<form:input path="titleImgWidth"/>
				<form:errors path="titleImgWidth" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>titleImgHeight</th>
			<td>
				<form:input path="titleImgHeight"/>
				<form:errors path="titleImgHeight" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>contentImgWidth</th>
			<td>
				<form:input path="contentImgWidth"/>
				<form:errors path="contentImgWidth" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>contentImgHeight</th>
			<td>
				<form:input path="contentImgHeight"/>
				<form:errors path="contentImgHeight" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>priority</th>
			<td>
				<form:input path="priority"/>
				<form:errors path="priority" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>hasContent</th>
			<td>
				<form:input path="hasContent"/>
				<form:errors path="hasContent" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>isDisabled</th>
			<td>
				<form:input path="isDisabled"/>
				<form:errors path="isDisabled" cssClass="errorMessage"/>
			</td>
		</tr>
		<tr>
			<th>isDef</th>
			<td>
				<form:input path="isDef"/>
				<form:errors path="isDef" cssClass="errorMessage"/>
			</td>
		</tr>
	</table>
	<input type="submit" value="edit"/>
	</form:form>

	<a href="javascript:goList();">list</a>

</body>
</html>
